$(function () {

    var ms= 1000;
    var lastClick = Date.now() - ms;
    var button = document.querySelector('button');
    button.addEventListener('click', () => {
        if (Date.now() - lastClick >= ms) {
            console.log('click-btn');
            lastClick = Date.now();
        }
    });

});
